package com.usefullc.blog.param;
import com.usefullc.common.domain.BaseDomain;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.validator.UsefulPropertyVerify;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 类目参数实体
 * @author: 星空
 * @date: 20220628
 */
@ApiModel
@Data
public class CategoryParam extends BaseDomain {
    //useful_auto_generate_section_start

    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "ID")
    private Long id;

    @UsefulPropertyVerify(required=true)
    @ApiModelProperty(notes = "父类目")
    private Long parentId;

    @UsefulPropertyVerify(minLen=2, required=true, maxLen=100)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulPropertyVerify(minLen=2, maxLen=100)
    @ApiModelProperty(notes = "图标")
    private String icon;

    @UsefulPropertyVerify(min=1, max=1000, required=true)
    @ApiModelProperty(notes = "排序")
    private Integer orderNo;

    @UsefulPropertyVerify(minLen=2, maxLen=200)
    @ApiModelProperty(notes = "路径")
    private String url;

    @UsefulPropertyVerify(minLen=2, maxLen=1000)
    @ApiModelProperty(notes = "描述")
    private String description;

    @UsefulPropertyVerify(minLen=2, maxLen=300)
    @ApiModelProperty(notes = "横幅图")
    private String bannerImgUrl;


//useful_auto_generate_section_end

}
